package com.splic.product.service;

import java.util.List;
import com.splic.product.domain.ExchangeRate;

/**
 * 汇率Service接口
 * 
 * @author singe
 * @date 2022-01-04
 */
public interface ExchangeRateService
{
    /**
     * 查询汇率
     * 
     * @param id 汇率主键
     * @return 汇率
     */
    public ExchangeRate selectExchangeRateById(Long id);


    /**
     * 查询汇率列表
     *
     * @param exchangeRate 汇率
     * @return 汇率集合
     */
    public List<ExchangeRate> selectPageList(ExchangeRate exchangeRate);


    /**
     * 查询汇率列表
     * 
     * @param exchangeRate 汇率
     * @return 汇率集合
     */
    public List<ExchangeRate> selectExchangeRateList(ExchangeRate exchangeRate);

    /**
     * 新增汇率
     * 
     * @param exchangeRate 汇率
     * @return 结果
     */
    public int insert(ExchangeRate exchangeRate);

    /**
     * 修改汇率
     * 
     * @param exchangeRate 汇率
     * @return 结果
     */
    public int update(ExchangeRate exchangeRate);

    /**
     * 删除汇率信息
     * 
     * @param id 汇率主键
     * @return 结果
     */
    public int deleteById(Long id);

    /**
     * 新增或修改汇率
     *
     * @param exchangeRate 汇率信息
     * @return 结果
     */
    public int saveOrUpdate(ExchangeRate exchangeRate);

    /**
     * 请求三方数据
     */
    public void requestThirdData();

}
